<template>
  <div class="home">
      
    <img alt="Vue logo" src="../assets/logo.png">
    <div>访问出错，暂无此页404</div>
  </div>
    
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import { computed } from '@vue/runtime-core'
import {mapState,mapMutations,mapActions,mapGetters} from 'vuex';


export default {
  name: 'newview',
  data(){
    return{
      mas:1111,
     show:false
    }
  },
  mounted(){
    console.log('sdsa')
    let old=(new Date().getTime())+3600*24*1000
    console.log(old)

    let d=new Date()
     
    var now =new Date().getTime()
    var sysj=old-now
    console.log(Math.floor(sysj/(3600*1000)))
    var time = new Date(now);
    var y = time.getFullYear();//getFullYear方法以四位数字返回年份
    var moth = time.getMonth() + 1;// getMonth方法从 Date 对象返回月份 (0 ~ 11)，返回结果需要手动加一
    var datas = time.getDate();// getDate方法从 Date 对象返回一个月中的某一天 (1 ~ 31)
    var h = time.getHours();// getHours方法返回 Date 对象的小时 (0 ~ 23)
    var m = time.getMinutes();// getMinutes方法返回 Date 对象的分钟 (0 ~ 59)
    var s = time.getSeconds();// getSeconds方法返回 Date 对象的秒数 (0 ~ 59)
    console.log(moth)
    console.log(y+'-'+moth+'-'+datas+' '+h+':'+m+':'+s)

  },
  components: {
    HelloWorld
  },
  computed:{
    getcount:function(){
      console.log(this.$store.state)
      return this.$store.state.count
    },
    ...mapGetters(["js"]),
  },
  methods:{
    
  }
  
}
</script>
<style>
 .neiy{
   height: 50vh;
 }
</style>